type FileType = {
    uid: string,
    name: string,
    status: 'done' | 'uploading' | 'error' | 'removed',
    response: string,
    url: string
}

export type resourceReqTypa = {
    resourcesId?: number,
    categoryId?: number,
    status: number,
    keywords: string,
    paging: {
        page: number,
        size: number
    }
}

export type classificationReqPramesType = {
    sub: boolean,
    paging: {
        page: number,
        size: number
    }
}

export type classificationOpctionsType = {
    categoryId: number,
    categoryName: string,
    sub: classificationOpctionsType[]
}

export type resourceResTypa = {
    resourcesId: number,
    categoryId: number,
    status: number,
    keywords: string,
    title: string,
    coverImgUrl: string,
    username: string,
    url: string,
    detailImagesUrl: string[],
    sourceUrl: string,
    createTime: number,
    updateTime: number

}

export type resourceResType = {
    count: number,
    data: resourceResTypa[]
}

export type resourceReqStateType = {
    resourcesId: number,
    status: number
}

export type resourceFormType = {
    title: string,
    coverImgUrlFile: FileType[],
    username: string,
    url: string,
    categoryId: number,
    sourceUrlFile: FileType[],
    detailImagesUrlFile: FileType[]
}

export type resourceResFormType = {
    title: string,
    coverImgUrl: string,
    username: string,
    url: string,
    categoryId: number,
    sourceUrl: string,
    detailImagesUrl: string[]
}

export type resourceReqFormType = {
    resourcesId?: number,
    title: string,
    coverImgUrl: string,
    username: string,
    url: string,
    categoryId: number,
    sourceUrl: string,
    detailImagesUrl: string[]
}